//
//  Common.swift
//  Weibo10
//
//  Created by male on 15/10/15.
//  Copyright © 2015年 itheima. All rights reserved.
//

// 目的：提供全局共享属性或者方法，类似于 pch 文件
import UIKit

/// 全局外观渲染颜色 -> 延展出`配色`的管理类
let WBAppearanceTintColor = UIColor.orangeColor()

// 全局通知定义
///
let SYLJSwitchRootViewControllerNotification = "SYLJSwitchRootViewControllerNotification"
///选中缩略图照片通知
let WBStatusSelectedPhotoNotification = "WBStatusSelectedPhotoNotification"
//定义通知字典键值常量
///选中 URL 数组 KEY
let WBStatusSelectedPhotoURLKey = "WBStatusSelectedURLKey"
/// 选中 索引 KEY
let WBStatusSelectedPhotoIndexPathKey = "WBStatusSelectedIndexPathKey"

func delay (delta: Double,callFunc: ()->()) {
    dispatch_after(
        dispatch_time(DISPATCH_TIME_NOW, Int64(delta * Double(NSEC_PER_SEC))),
        dispatch_get_main_queue()) { () -> Void in
        callFunc()
    }
}